<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>在线教育</title>

</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">在线教育首页</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

            <li class="layui-nav-item layui-hide-xs"><a href="">免费课程</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">体系课程</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">在线测评</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">学习社区</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">在线测评</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">我的收藏</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">我的课程</a></li>

        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">Your Profile</a></dd>
                    <dd><a href="">Settings</a></dd>
                    <dd><a href="">Sign out</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">我的课程</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">我的收藏</a>

                </li>
                <li class="layui-nav-item" id="myOrder"><a href="javascript:;">我的订单</a></li>
                <li class="layui-nav-item"><a href="">我的文章</a></li>
                <li class="layui-nav-item"><a href="">我的考试</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">


            <div class="layui-tab">
                <ul class="layui-tab-title">
                    <li class="layui-this">订单</li>
                    <li>余额</li>
                    <li>消费记录</li>

                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">


                        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                            <ul class="layui-tab-title">
                                <li class="layui-this">全部</li>
                                <li>待支付</li>
                                <li>支付成功</li>
                                <li>已关闭</li>
                            </ul>
                            <div class="layui-tab-content" style="height: 100px;">
                                <div class="layui-tab-item layui-show">



                                </div>
                                <div class="layui-tab-item">内容2</div>
                                <div class="layui-tab-item">内容3</div>
                                <div class="layui-tab-item">内容4</div>
                                <div class="layui-tab-item">内容5</div>
                            </div>
                        </div>



                    </div>
                    <div class="layui-tab-item">
                        余额数据
                    </div>
                    <div class="layui-tab-item">
                        消费记录

                    </div>

                </div>
            </div>




        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        到底了!
    </div>
</div>

</body>
</html>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="https://layui.11dz.cn/layui-v2.6.8/layui/css/layui.css">

<!-- 引入 layui.js -->
<script src="https://layui.11dz.cn/layui-v2.6.8/layui/layui.js"></script>
<script>
    layui.use('element',function(){
        var $ = layui.jquery,
            element=layui.element;


        $('#myOrder').click(function () {
            $.ajax({
                url:'http://grouptwo.com/api/orderSel?uid=1',
                type:'get',
                success:function (data) {
                    if(data.code=='200'){

                    }
                }
            })
        })


    })



</script>
